<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
define('IS_AJAX', isset($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest'); 
$handle = opendir(APPPATH.'modules');
if ($handle)
{
	while ( false !== ($module = readdir($handle)) )
	{
		// make sure we don't map silly dirs like .svn, or . or ..

		if (substr($module, 0, 1) != ".")
		{
			if ( @file_exists(APPPATH.'modules/'.$module.'/config/constants.php') )
			{
				include(APPPATH.'modules/'.$module.'/config/constants.php');
			}

		}
	}
}


/* End of file constants.php */
/* Location: ./application/config/constants.php */
